@include b(chat-topic-item) {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 8px;
  cursor: pointer;
  border-radius: 8px;

  &:hover {
    color: #{getCssVar('ai-chat', 'hover-color')};
    background-color: #{getCssVar('ai-chat', 'hover-background-color')};

    @include b(chat-topic-item-icon) {
      opacity: 1;
    }
  }
  
  @include when(active) {
    color: #{getCssVar('ai-chat', 'hover-color')};
    background-color: #{getCssVar('ai-chat', 'hover-background-color')};
  }
}

@include b(chat-topic-item-caption) {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap
}

@include b(chat-topic-item-icon) {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 54px;
  height: 24px;
  color: #{getCssVar('ai-chat', 'hover-color')};
  background-color: #{getCssVar('ai-chat', 'hover-background-color')};
  border-radius: 8px;
  outline: none;
  opacity: 0;
  transform: translateY(-50%);
}

@include b(chat-topic-item-icon__item) {
  font-size: 12px;
}